DIM a(1 TO 3, 1 TO 3)
RANDOMIZE TIMER
CLS
FOR i = 1 TO 3
FOR j = 1 TO 3
a(i, j) = INT(RND * 21 - 10)
PRINT a(i, j),
NEXT j
PRINT
NEXT i
PRINT
FOR i = 1 TO 3
FOR j = 1 TO 3
IF i > 1 AND a(i, j) > 0 THEN a(i, j) = a(i, j) * 2
PRINT a(i, j),
NEXT j
PRINT
NEXT i
Тестирование выполнено в программе QB64 ( Скачать )